package com.vr.xxaiagent.demo.invoke;

import dev.langchain4j.community.model.dashscope.QwenChatModel;

/**
 * LangChain4j调用 AI
 *
 * @author hzh
 * @date 2025/05/30
 */
public class LangChainAiInvoke {
    public static void main(String[] args) {
        QwenChatModel qwenChatModel = QwenChatModel.builder()
                .apiKey(TestApi.API_KEY)
                .modelName("qwen-plus")
                .build();
        String result = qwenChatModel.chat("你是谁");
        System.out.println(result);
    }
}
